package com.nb82.bean.weather.codeEnum;

public enum WindEnum {
	zero(0,"微风","<10m/h"),
	one(1,"3-4 级","10~17m/h"),
	two(2,"4-5级","17~25m/h"),
	three(3,"5-6级","25~34m/h"),
	four(4,"6-7级","34~43m/h"),
	five(5,"7-8级","43~54m/h"),
	six(6,"8-9级","54~65m/h"),
	seven(7,"9-10级","65~77m/h"),
	eight(8,"10-11级","77~89m/h"),
	nine(9,"11-12级","89~102m/h");
	private final int lv;//风等级
	private final String desc,//描述
						speed;//速度
	
	WindEnum(int lv,String desc,String speed){
		this.lv = lv;
		this.desc = desc;
		this.speed = speed ;
	}
	public int getLv() {
		return lv;
	}
	public String getDesc() {
		return desc;
	}
	public String getSpeed() {
		return speed;
	}
	public static WindEnum getWindEnum(int id){
		WindEnum enum1 = null ;
		switch (id) {
		case 0:
			enum1 = WindEnum.zero ;
			break;
		case 1:
			enum1 = WindEnum.one;
			break;
		case 2:
			enum1 = WindEnum.two ;
			break;
		case 3:
			enum1 = WindEnum.three ;
			break;
		case 4 :
			enum1 = WindEnum.four ;
			break;
		case 5 :
			enum1 = WindEnum.five ;
			break;
		case 6 :
			enum1 = WindEnum.six ;
			break;
		case 7 :
			enum1 = WindEnum.seven ;
			break;
		case 8 :
			enum1 = WindEnum.eight ;
			break;
		case 9 :
			enum1 = WindEnum.nine ;
			break;
		default:
			break;
		}
		return enum1;
	}
}
